import { Component } from '@angular/core';
import { WOW } from 'wowjs';
import logLogo from "../assets/logLogo.js";
import { Router } from '@angular/router';
declare var $: any;

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.styl']
})
export class AppComponent {
  constructor(public router: Router) {

  }
  ngOnInit(): void {
    // 进入路由滚动条置顶
    this.router.events
      .subscribe((event) => {
        $(window).scrollTop(0);
      });

    // 在控制台输出TIDC
    logLogo();
  }
  ngAfterViewInit() {
    //初始化wow.js
    var wow = new WOW({
      live: false
    });
    wow.init();

  }
}
